package com.msblearn.Disruptor.V1;


import com.lmax.disruptor.EventHandler;

public class LongEventHandler implements EventHandler<LongEvent> {

    /**
     * @param longEvent 要处理的事件
     * @param l         从那个位置开始
     * @param b         是否已经处理
     * @throws Exception
     */
    @Override
    public void onEvent(LongEvent longEvent, long l, boolean b) throws Exception {
        System.out.println(longEvent.getValue());
    }
}
